import HomePage from '../components/Home.jsx';
import { Navigate } from "react-router-dom";
import Logo from '../components/Logo.jsx';
import SoftList from '../components/SoftList';
import GraphQLExplorer from '../components/graphiql/GraphQLExplorer.jsx';
import FormulasShow from '../components/math/FormulasShow.jsx';
import Resume from '../components/resume/Resume.jsx';
import ColorTextShow from '../components/resume/ColorTextShow.jsx';
import EnglishFontStudio from '../components/EnPrint/EnglishFontStudio.jsx';
import StarHistory from '../components/EnPrint/StarHistory.jsx';


const routes = [
    {
        path: '/logo/*',
        element: <Logo />,
    },
    {
        path: '/',
        element: <Navigate to="/logo" />,
    },
    {
        path: '/GraphQLExplorer',
        element: <GraphQLExplorer />,
        children: [],
    },
    {
        path: '/formulas',
        element: <FormulasShow />,
        children: [],
    },
    {
        path: '/resume',
        element: <Resume />,
        children: [],
    },
    {
        path: '/AntdColorText',
        element: <ColorTextShow />,
        children: [],
    },
    {
        path: '/home',
        element: <HomePage />,
        children: [
            {
                path: 'overview',
                element: <SoftList />,
            }
        ]
    },
    {
        path: '/EnglishFontStudio',
        element: <EnglishFontStudio />,
        children: [],
    },
    {
        path: '/StarHistory',
        element: <StarHistory />,
        children: [],
    },
    
];

export default routes;